/********************************************************************
* Copyright (c) 2013,TGS,All rights reserved.
* fileName:	MapToolDrawPolygon.h	
* created:	2013/05/02 9:13

* version:	1.6
* detail: 
*********************************************************************/

#include "MapTool.h"


namespace TGS{
namespace MapControl{


class MapCanvas;
class RubberBand;


class MapToolDrawPolygon : public MapTool
{
public:
    MapToolDrawPolygon( MapCanvas* canvas );

    virtual ~MapToolDrawPolygon();

    //! Overridden mouse move event
    virtual void canvasMoveEvent( QMouseEvent * e );

    //! Overridden mouse press event
    virtual void canvasPressEvent( QMouseEvent * e );

	virtual void canvasWheelEvent( QWheelEvent *e );

	virtual void canvasDoubleClickEvent( QMouseEvent * e );

	virtual void deactivate();

	virtual void reset();
private:

    //! used for storing all of the maps point for the polygon
    RubberBand* _rubberBand;
};

}//MapControl
}//TGS